namespace SimpleWebServices
{
    using System;

    public static class TypeTestingExtensionMethods
    {
        public static bool IsStatic(this Type type)
        {
            if (null == type)
            {
                throw new ArgumentNullException("type");
            }

            return type.IsAbstract && type.IsSealed && type.IsSubclassOf(typeof(object));
        }
    }
}